package strategyexample.src.yjf.children;


import strategyexample.src.yjf.behavior.impl.FlyNoWayImpl;
import strategyexample.src.yjf.behavior.impl.SilentImpl;
import strategyexample.src.yjf.supperObj.BaseDuck;


/**
 * @author yaojianfeng
 */
public class RedHeadDuck extends BaseDuck {
    public RedHeadDuck() {
        flyBehavior = new FlyNoWayImpl();
        quackBehavior = new SilentImpl();
    }

    @Override
    public void display() {
        System.out.println("红头鸭!");
    }
}
